﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace HttpClientT
{
    public class FilesResponse 
    {
        public FolderResult Directory { get; set; }
        public FileResult File { get; set; }

    }


    public class FileResult
    {
        public string Name { get; set; }
        public string Extension { get; set; }
        public long FileSizeBytes { get; set; }
        public DateTime ModifiedDate { get; set; }
        public bool IsTextFile { get; set; }
        public string Contents { get; set; }
    }

    public class FolderResult
    {
        public FolderResult()
        {
            Folders = new List<Folder>();
            Files = new List<File>();
        }

        public List<Folder> Folders { get; set; }
        public List<File> Files { get; set; }
    }

    public class Folder
    {
        public string Name { get; set; }
        public DateTime ModifiedDate { get; set; }
        public int FileCount { get; set; }
    }

    public class File
    {
        public string Name { get; set; }
        public string Extension { get; set; }
        public long FileSizeBytes { get; set; }
        public DateTime ModifiedDate { get; set; }
        public bool IsTextFile { get; set; }
    }
}
